/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package daa.levelup.Window;

import javax.swing.*;
import java.awt.*;
import java.awt.geom.Rectangle2D;

/**
 *
 * @author user
 */
public class FrameDesign extends JPanel

{
    private Logic l ;

    public FrameDesign(Logic l)
    {
        this.l = l;
    }
    
    
    @Override
    public void paintComponent(Graphics g)
            
    {
        super.paintComponent(g);
        Graphics2D g2d = (Graphics2D) g;
        g2d.setBackground(Color.yellow);
         g2d.setColor(Color.darkGray);
        Rectangle2D r = new Rectangle2D.Double(30, 30, 120, 30 );
        g2d.fill(r);
       
        
        
        
        g2d.draw(r);
        Font f = new Font(Font.SANS_SERIF, Font.BOLD, 14);
        g2d.setFont(f);
         g2d.setColor(Color.white);
       
        g2d.drawString(l.getIPaddress(), 50, 50);
    }
}

